package com.kylin.user.api.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 更新用户地址
 * @author Damon S.
 * @version v1.0.1
 * @date 2020年12月20日 11:59
 */
@Data
@NoArgsConstructor
@ApiModel(value = "更新用户地址")
public final class UpdateAddressReqDTO implements Serializable {

    @NotNull
    @NonNull
    @ApiModelProperty(value = "用户Id")
    private String userId;

    @NotNull
    @NonNull
    @ApiModelProperty(value = "收货人")
    private String consignee;

    @NotNull
    @NonNull
    @ApiModelProperty(value = "联系电话")
    private String phone;

    @NotNull
    @NonNull
    @ApiModelProperty(value = "详细地址")
    private String address;

    @NotNull
    @NonNull
    @ApiModelProperty(value = "省/自治区")
    private Long provinceId;

    @NotNull
    @NonNull
    @ApiModelProperty(value = "市")
    private Long cityId;

    @NotNull
    @NonNull
    @ApiModelProperty(value = "区/县")
    private Long countyId;
}
